<script>
	export default {
		onLaunch: async function() {
			let isLogin = true;//登陆状态
			let token = uni.getStorageSync('token');
			let res = await this.api.public.verify();
			console.log(token);
			if(res.status){
				uni.navigateTo({
					url:'/pages/index/index'
				})
			} else {
				uni.navigateTo({
					url:'/pages/login/index'
				})
			}
		},
		onShow: function() {
			// console.log('App Show')
		},
		onHide: function() {
			// 
		}
	}
</script>

<style lang="scss">
	/*每个页面公共css */
	@import "colorui/main.css";
	@import "colorui/icon.css";
	@import './style/thorui.css';
	body{
		background-color: #f8f8f8;
	}
</style>
